# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.


class CloudDiskSpec(object):

    def __init__(self, snapshotId=None, deviceName=None, diskType=None, diskSizeGB=None, autoDelete=None):
        """
        :param snapshotId: (Optional) 快照ID。
        :param deviceName: (Optional) 设备名称。
系统盘：必须含有该设备名称，取值：vda。
数据盘：取值范围：[vdb-vdz]。

        :param diskType: (Optional) 云盘类型。
取值范围：ssd.gp1、ssd.io1、hdd.std1、ssd.gp2、ssd.io2。
默认值：ssd.gp1。

        :param diskSizeGB: (Optional) 云盘容量需要大于快照容量，默认为快照容量，单位GiB。
系统盘容量范围：[40-500]。
数据盘容量范围：[20-32000]。

        :param autoDelete: (Optional) 是否随实例一起删除，即删除实例时是否自动删除此磁盘。此参数仅对按配置计费的非多点挂载云硬盘生效。
true：随实例删除。
false：不随实例删除。
默认值：false。
        """

        self.snapshotId = snapshotId
        self.deviceName = deviceName
        self.diskType = diskType
        self.diskSizeGB = diskSizeGB
        self.autoDelete = autoDelete
